package com.raising.sc.controller;

import com.raising.sc.service.HelloService;
import com.raising.sc.service.HelloService2;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.web.bind.annotation.RequestMapping;
import org.springframework.web.bind.annotation.RequestParam;
import org.springframework.web.bind.annotation.RestController;

import java.util.List;

@RestController
public class DcController {

    @Autowired
    HelloService helloService;
    @Autowired
    HelloService2 helloService2;

    @RequestMapping(value = "/hi")
    public String hi(@RequestParam String name){
        return helloService.hiService(name);
    }

    @RequestMapping(value = "/hi1")
    public String hi1(@RequestParam String name){
        return helloService2.hiService1(name);
    }

}